package com.qztc.hire_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("user")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "用户信息")
public class User extends Model<User> implements Serializable {
    @Schema(title = "用户id")
    @TableId(value = "user_id")
    private int userId;

    @Schema(title = "用户名")
    @TableField(value = "user_name")
    private String userName;

    @Schema(title = "密码")
    @TableField(value = "user_pwd")
    private String userPwd;

    @Schema(title = "真实姓名")
    @TableField(value = "real_name")
    private String realName;

    @Schema(title = "手机号")
    @TableField(value = "user_phone")
    private String userPhone;

    @Schema(title = "身份证")
    @TableField(value = "user_idcard")
    private String userIDCard;

    @Schema(title = "会员等级id，外键")
    @TableField(value = "member_id")
    private int memberId;

    @Schema(title = "用户会员积分")
    @TableField(value = "member_points")
    private int MemberPoints;

    @Schema(title = "注册时间")
    @TableField(value = "user_createdate")
    private String userCreateDate;
}